import Home from "../pages/Home"
import Detail from "../pages/Login"
import Login from "../pages/Login"

import Analysis from "../pages/Home/Analysis"
import Business from "../pages/Home/Business"
import Customers from "../pages/Home/Customers"
import Main from "../pages/Home/Main"
import Management from "../pages/Home/Management"
import Organizational from "../pages/Home/Organizational"
import Policy from "../pages/Home/Policy"
import Record from "../pages/Home/Record"
import System from "../pages/Home/System-management"

const routes=[{
    path:'/home',
    name:'主页',
    component:Home,
    children:[
        {
            path:'/home/main',
            name:'系统首页',
            component:Main,
        },{
            path:'/home/Management',
            name:'招商管理',
            component:Management,
        },{
            path:'/home/policy',
            name:'招商政策',
            component:Policy,
        },{
            path:'/home/organizational',
            name:'组织架构',
            component:Organizational,
        },{
            path:'/home/customers',
            name:'企业咨询',
            component:Customers,
        },{
            path:'/home/record',
            name:'会议记录',
            component:Record,
        },{
            path:'/home/business',
            name:'潜在客户',
            component:Business,
        },{
            path:'/home/analysis',
            name:'客户分析',
            component:Analysis,
        },{
            path:'/home/system',
            name:'系统管理',
            component:System,
        },
    ]
},{
    path:'/detail',
    name:'详情',
    component:Detail
},{
    path:'/login',
    name:'登录',
    component:Login
},{
    from:'/',
    to:'/home'
}]

export default routes